package com.youlai.system.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.bo.AirPlaneBo;
import com.youlai.system.model.bo.UserBO;
import com.youlai.system.model.vo.AirPlaneVO;
import com.youlai.system.model.vo.UserPageVO;
import org.mapstruct.Mapper;
import com.youlai.system.model.entity.AirPlane;
import com.youlai.system.model.form.AirPlaneForm;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * 机型管理对象转换器
 *
 * @author youlai买国涛
 * @since 2024-11-05 16:30
 */
@Mapper(componentModel = "spring")
public interface AirPlaneConverter {

    // 将实体对象转换为表单对象
    AirPlaneForm toForm(AirPlane entity);

    AirPlane toEntity(AirPlaneForm formData);

    /**
     * 将 AirPlaneBO 转换为 AirPlaneVO
     */
    Page<AirPlaneVO> toAirPlanePageVo(Page<AirPlaneBo> bo);






}